package #1;

import java.util.List;

import lombok.Data;

@Data
public class PageBean<T> {
	private int pageCount;
	private int pageIndex;
	List<T> pageInfos;

	public PageBean(int pageCount, int pageIndex, List<T> pageInfos) {
		super();
		this.pageCount = pageCount;
		this.pageIndex = pageIndex;
		this.pageInfos = pageInfos;
	}

	public PageBean() {
		super();
	}

	public static <T> PageBean<T> newInstance() {
		return new PageBean<T>();
	}

}
